package com.kinghunt.misp.web.controller.userx;

import com.kinghunt.misp.service.api.userx.SystemToolService;
import com.bygoodtech.kings.common.dto.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 系统初始化工具
 * @Author jiangtao
 * @Date 2023/7/4 18:47
 */
@RestController
@RequestMapping("/api/userx/system/")
public class SystemTools {
    @Autowired
    SystemToolService systemToolService;

    @GetMapping("initSystem")
    public ApiResult<Boolean> initSystem(String domain) {
        systemToolService.initSys(domain);
        return ApiResult.ok(true);
    }
}
